package com.efast.cafe.portal.service.common;

import java.util.List;

import com.efast.cafe.portal.bean.common.LeaveMessageBean;
import com.efast.cafe.portal.entity.common.PortalCommonLeavemsg;
import com.efast.cafe.portal.remote.common.PortalCommonLeavemsgService;

public interface IPortalCommonLeavemsgService extends PortalCommonLeavemsgService{

	/**
	 * 添加留言
	 * @param msg
	 */
	public int addLeavemsg(PortalCommonLeavemsg msg);
	
	/**
	 * 查询留言
	 * @param objectId 业务表单id
	 * @param objectType 业务表单类型 比如cip表单
	 * @return
	 */
	public List<LeaveMessageBean> queryLeavemsg(Integer objectId,String objectType);
	
	/**
	 * 删除留言 只能删除自己发布的留言
	 * @param id 留言id
	 * @param objectId 业务对象id
	 * @param objectType 业务对象类型
	 */
	public void delLeavemsg(Integer id,Integer objectId,String objectType);
	
	/**
	 * 根据id查询留言
	 * @param objectId 业务表单id
	 * @param objectType 业务表单类型 比如cip表单
	 * @return
	 */
	public LeaveMessageBean queryLeavemsgById(Integer id,Integer objectId,String objectType);
}
